package com.wenhai.concurrency.thread;

/**
 * @ClassName SubthreadDemo
 * @Description
 * @Author 谢文海
 * @Date 2021/4/9 0:44
 * @Version 1.0
 **/
public class SubthreadDemo {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            for (int i = 0; i < 100000; i++) {
                System.out.println(i);
            }
        });
        thread.start();

        Thread thread2 = new Thread(() -> {
            for (int i = 0; i < 100000; i++) {
                System.out.println(i);
            }
        });
        thread2.start();

    }
}
